//
//  SpecilDemo.m
//  WMZBanner
//
//  Created by wmz on 2020/4/15.
//  Copyright © 2020 wmz. All rights reserved.
//

#import "SpecilDemo.h"
#import "WMZBannerView.h"
@interface SpecilDemo ()

@end

@implementation SpecilDemo

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self styleOne];
}


- (void)styleOne{
    WMZBannerParam *param =  BannerParam()
    .wFrameSet(CGRectMake(10,100, BannerWitdh-20, BannerHeight*0.25))
    .wItemSizeSet(CGSizeMake(BannerWitdh-20, BannerHeight*0.23))
    .wDataSet([self getData])
    //自定义下划线
    .wSpecialCustumLineSet(^(UIView *line) {
        line.frame = CGRectMake(0, 0, 100, 3);
        line.backgroundColor = [UIColor redColor];
    })
    .wHideBannerControlSet(YES)
    .wSpecialStyleSet(SpecialStyleLine);
    WMZBannerView *viewOne = [[WMZBannerView alloc]initConfigureWithModel:param];
    [self.view addSubview:viewOne];
    
}

- (NSArray*)getData{
    return @[
      @{@"name":@"自定义文本1",@"icon":@"http://res1.eqh5.com/5572bd27-1766-4100-a549-2695ad6116e1.png"},
      @{@"name":@"自定义文本2",@"icon":@"http://res1.eqh5.com/00f79722-a279-4256-966b-a1e20212a401.png"},
      @{@"name":@"自定义文本3",@"icon":@"http://res1.eqh5.com/a8797ecd-bb42-49b6-8d7f-6f4bb9b9c7ed.png"},
      @{@"name":@"自定义文本4",@"icon":@"http://res1.eqh5.com/7d054413-3c53-47e2-8dde-abf2a8b01711.png"}
      ];
}

@end
